﻿/* 3. Write an expression that calculates rectangle’s area by given width and height. */

using System;

public class RectangleArea
{
    public static void Main()
    {
        Console.Write("width = ");
        double width = double.Parse(Console.ReadLine());
        Console.Write("height = ");
        double height = double.Parse(Console.ReadLine());

        if ((width >= 0) && (height >= 0))
            Console.WriteLine("Rectangle's area = {0}", width * height);
        else
            Console.WriteLine("Width and Height must be positive!");
    }
}